﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XOROperation
{
    class Program
    {
        static void Main(string[] args)
        {
            char chA = 'a';
            char chB = 'b';

            chA ^= chB;
            chB = (char)(chA ^ chB);
            chA ^= chB;

            int iA = 11;
            int iB = 22;
            iA ^= iB;
            iB = iA ^ iB;
            iA ^= iB;

            test(iA);
            test(ref iA);
        }

        static void test(int a) {
            // int size = sizeof(a);
            return;
        }
        static void test(ref int a)
        {
            // int size = sizeof(int);

        }
    }

    //class A<T>
    //{
    //    public operator ^=(T t);
    //    public static void ex(T tA, T tb)
    //    {
    //        tA ^= tb;
    //    }
    //}
}
